for i in range(9, 0, -1):
    for j in range(i, 0, -1):
        print(f'{i} * {j} = {i * j}', end=' ')
    print()